home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / XAMPP 1.4.14 / xampp-win32-1.4.14-installer.exe / xampp / phpMyAdmin / libraries / transformations / overview.php < prev    next >
PHP Script  |  2004-05-20  |  2KB  |  78 lines

  1. <?php
  2. /* $Id: overview.php,v 2.4 2004/05/20 16:14:13 nijel Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * Change to basedir for including/requiring other fields
  7.  */
  8. chdir('../../');
  9. define('PMA_PATH_TO_BASEDIR', '../../'); // rabus: required for the CSS link tag.
  10.  
  11. /**
  12.  * Don't display the page heading
  13.  */
  14. define('PMA_DISPLAY_HEADING', 0);
  15.  
  16. /**
  17.  * Gets some core libraries and displays a top message if required
  18.  */
  19. require_once('./libraries/grab_globals.lib.php');
  20. require_once('./libraries/common.lib.php');
  21. require_once('./header.inc.php');
  22. require_once('./libraries/relation.lib.php');
  23. require_once('./libraries/transformations.lib.php');
  24. $cfgRelation = PMA_getRelationsParam();
  25.  
  26. $types = PMA_getAvailableMIMEtypes();
  27. ?>
  28.  
  29. <h2><?php echo $strMIME_available_mime; ?></h2>
  30. <?php
  31. foreach ($types['mimetype'] AS $key => $mimetype) {
  32.  
  33.     if (isset($types['empty_mimetype'][$mimetype])) {
  34.         echo '<i>' . $mimetype . '</i><br />';
  35.     } else {
  36.         echo $mimetype . '<br />';
  37.     }
  38.  
  39. }
  40. ?>
  41. <br />
  42. <i>(<?php echo $strMIME_without; ?>)</i>
  43.  
  44. <br />
  45. <br />
  46. <br />
  47. <h2><?php echo $strMIME_available_transform; ?></h2>
  48. <table border="0" width="90%">
  49.     <tr>
  50.         <th><?php echo $strMIME_transformation; ?></th>
  51.         <th><?php echo $strMIME_description; ?></th>
  52.     </tr>
  53.  
  54. <?php
  55. @reset($types);
  56. $i = 0;
  57. foreach ($types['transformation'] AS $key => $transform) {
  58.     $i++;
  59.     $func = strtolower(preg_replace('@(\.inc\.php3?)$@i', '', $types['transformation_file'][$key]));
  60.     $desc = 'strTransformation_' . $func;
  61. ?>
  62.     <tr bgcolor="<?php echo ($i % 2 ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']); ?>">
  63.         <td><?php echo $transform; ?></td>
  64.         <td><?php echo (isset($$desc) ? $$desc : '<font size="-1"><i>' . sprintf($strMIME_nodescription, 'PMA_transformation_' . $func . '()') . '</i></font>'); ?></td>
  65.     </tr>
  66. <?php
  67. }
  68. ?>
  69.  
  70. <?php
  71. /**
  72.  * Displays the footer
  73.  */
  74. echo "\n";
  75. require_once('./footer.inc.php');
  76.  
  77. ?>
  78.